package com.spring.shops.dao;

import com.github.pagehelper.Page;
import com.spring.shops.model.dto.PickAddrDTO;
import com.spring.shops.model.entity.TzPickAddr;

import java.util.List;

public interface TzPickAddrMapper {
    int deleteByPrimaryKey(Long addrId);

    int insert(TzPickAddr record);

    int insertSelective(TzPickAddr record);

    TzPickAddr selectByPrimaryKey(Long addrId);

    int updateByPrimaryKeySelective(TzPickAddr record);

    int updateByPrimaryKey(TzPickAddr record);

    /**
     * 分页查询
     * @param dto
     * @return
     */
    Page<TzPickAddr> page(PickAddrDTO dto);
    /**
     * 批量删除数据
     * @param ids
     * @return
     */
    int deleteByIds(List<Integer> ids);
}